package com.atguigu.gulimall.auth.feign;

import com.atguigu.common.utils.R;
import com.atguigu.gulimall.auth.vo.UserVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 会员服务Feign接口
 *
 * @author DuGuanghan
 * @since 2024-08-22 16:32:28
 */
@FeignClient("gulimall-member")
public interface MemberFeignService {

    /**
     * 注册会员
     *
     * @param userVO 用户
     * @return {@link R }
     * @author DuGuanghan
     * @since 2024-08-22 16:34:11
     */
    @PostMapping("/member/member/regist")
    R regist(@RequestBody UserVO userVO);

    /**
     * 用户登录
     *
     * @param userVO 用户
     * @return {@link R }
     * @author DuGuanghan
     * @since 2024-08-23 11:33:08
     */
    @PostMapping("/member/member/login")
    R login(@RequestBody UserVO userVO);

}
